<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <a id="button">跳转</a>
    </div>
    <script>
        var button = document.getElementById("button");
        button.onclick = function () {
            var url = "http://192.168.0.126:8080/?" + window.btoa("username=admin@gia.com&password=maoyt123");
            window.location.href = url;
        }
    </script>
</body>

</html>
